package gsw.demo.mvp.mvp_rxbus.dagger;

import dagger.Module;
import dagger.Provides;
import gsw.demo.mvp.mvp_rxbus.presenter.GirlPresenter;
import gsw.demo.mvp.mvp_rxbus.ActivityMvpRxBus;

/**
 * Module：给注册对象提供new对象
 */
@Module
public class GirlModule {
    ActivityMvpRxBus activity;

    public GirlModule(ActivityMvpRxBus activity) {
        this.activity = activity;
    }

    @Provides
    public GirlPresenter provide() {
        return new GirlPresenter(activity);
    }
}
